package ceha.application.archivage;

import ceha.application.CEHA;
import ceha.util.OkCancelDialog;
import ceha.util.OkDialog;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.Beans;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.RollbackException;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.RowFilter;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;

public class ArchivageFrame extends JFrame {

    private final CEHA ceha;
    private String message;
    private JFrame frameRecherche;

    public ArchivageFrame(CEHA ceha) {
        this.ceha = ceha;

        initComponents();
        if (ceha.isLoginadmin()) {
            adminpanel.setVisible(true);
            idcorrecteurF.setText(ceha.getInitialeLogin());
        } else {
            adminpanel.setVisible(false);
        }
        if (!Beans.isDesignTime()) {
            entityManager.getTransaction().begin();
        }
        ficheEnable(false);
    }

    public JTable getMasterTable() {
        return masterTable;
    }

    public JButton getFiltrerB() {
        return filtrerB;
    }

    public JTextField getFiltrerF() {
        return filtrerF;
    }

    public JPanel getTablePanel() {
        return tablePanel;
    }

    public JPanel getFormulaire() {
        return Formulaire;
    }

    public JPanel getCommandes() {
        return Commandes;
    }

    public String getMessage() {
        return message;
    }

    private void ficheEnable(boolean b) {
        saveButton.setEnabled(b);
        refreshButton.setEnabled(b);
        effacerButton.setEnabled(b);
        lienvignette1.setEnabled(b);
        parcourirvignette.setEnabled(b);
        sourcecombo1.setEnabled(b);
        typedocCombo1.setEnabled(b);
        titreField1.setEnabled(b);
        auteurField1.setEnabled(b);
        jDateChooser4.setEnabled(b);
        siecleCombo1.setEnabled(b);
        resumeArea1.setEnabled(b);
        lienimageField.setEnabled(b);
        lienFichierField.setEnabled(b);
        fichierButton.setEnabled(b);
        imageButton.setEnabled(b);
        fondField1.setEnabled(b);
        jDateChooser3.setEnabled(b);
        droitsreproCombo1.setEnabled(b);
        localisationField1.setEnabled(b);
        dimensionField1.setEnabled(b);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

        entityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory("BDDCEHAPU").createEntityManager();
        query = java.beans.Beans.isDesignTime() ? null : entityManager.createQuery("SELECT f FROM Fiche f");
        list = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : org.jdesktop.observablecollections.ObservableCollections.observableList(query.getResultList());
        Commandes = new javax.swing.JPanel();
        nouvelFicheB = new javax.swing.JButton();
        effacerButton = new javax.swing.JButton();
        adminpanel = new javax.swing.JPanel();
        datecorrectionLabel = new javax.swing.JLabel();
        idcorrecteurLabel = new javax.swing.JLabel();
        idcorrecteurF = new javax.swing.JTextField();
        datechooserControle = new com.toedter.calendar.JDateChooser();
        jCheckBox1 = new javax.swing.JCheckBox();
        saveButton = new javax.swing.JButton();
        refreshButton = new javax.swing.JButton();
        tablePanel = new javax.swing.JPanel();
        masterscrollpane = new javax.swing.JScrollPane();
        masterTable = new javax.swing.JTable();
        panelN = new javax.swing.JPanel();
        filtrerB = new javax.swing.JButton();
        filtrerF = new javax.swing.JTextField();
        fermer = new javax.swing.JButton();
        Formulaire = new javax.swing.JPanel();
        CadreVignette1 = new javax.swing.JPanel();
        vignette1 = new javax.swing.JLabel();
        historicpanel1 = new javax.swing.JPanel();
        dimensionLabel1 = new javax.swing.JLabel();
        localisationLabel1 = new javax.swing.JLabel();
        droitsreproLabel1 = new javax.swing.JLabel();
        datedonationLabel1 = new javax.swing.JLabel();
        fondLabel1 = new javax.swing.JLabel();
        fondField1 = new javax.swing.JTextField();
        localisationField1 = new javax.swing.JTextField();
        dimensionField1 = new javax.swing.JTextField();
        jDateChooser4 = new com.toedter.calendar.JDateChooser();
        droitsreproCombo1 = new javax.swing.JComboBox();
        modifierButt = new javax.swing.JButton();
        fermerEtsortirB = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        imagefilenameLabel1 = new javax.swing.JLabel();
        lienvignette1 = new javax.swing.JTextField();
        parcourirvignette = new javax.swing.JButton();
        editevignetteB = new javax.swing.JButton();
        sourcecombo1 = new javax.swing.JComboBox();
        sourceLabel1 = new javax.swing.JLabel();
        typedocumentLabel2 = new javax.swing.JLabel();
        typedocCombo1 = new javax.swing.JComboBox();
        titreLabel1 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        titreField1 = new javax.swing.JTextArea();
        auteurField1 = new javax.swing.JTextField();
        auteurLabel1 = new javax.swing.JLabel();
        dateLabel1 = new javax.swing.JLabel();
        jDateChooser3 = new com.toedter.calendar.JDateChooser();
        siecleCombo1 = new javax.swing.JComboBox();
        datetexteLabel2 = new javax.swing.JLabel();
        resumeLabel1 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        resumeArea1 = new javax.swing.JTextArea();
        lienfichierLabel1 = new javax.swing.JLabel();
        lienFichierField = new javax.swing.JTextField();
        fichierButton = new javax.swing.JButton();
        imageButton = new javax.swing.JButton();
        lienimageField = new javax.swing.JTextField();
        lienimageLabel1 = new javax.swing.JLabel();

        Commandes.setBackground(new java.awt.Color(255, 255, 255));

        nouvelFicheB.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/10.gif"))); // NOI18N
        nouvelFicheB.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 153, 0), 5, true), "Nouvelle Fiche", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Trebuchet MS", 1, 14), new java.awt.Color(0, 102, 51))); // NOI18N
        nouvelFicheB.setContentAreaFilled(false);
        nouvelFicheB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nouvelFicheA(evt);
            }
        });

        effacerButton.setBackground(new java.awt.Color(255, 255, 255));
        effacerButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/poubelle.jpg"))); // NOI18N
        effacerButton.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true), "Effacer", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 14), new java.awt.Color(0, 0, 0))); // NOI18N
        effacerButton.setContentAreaFilled(false);
        effacerButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteFicheA(evt);
            }
        });

        adminpanel.setBackground(new java.awt.Color(255, 255, 255));
        adminpanel.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 51), 2, true), "Contrôle", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Trebuchet MS", 3, 12), new java.awt.Color(153, 0, 0))); // NOI18N

        datecorrectionLabel.setFont(new java.awt.Font("Tahoma", 1, 10));
        datecorrectionLabel.setText("Date de correction");

        idcorrecteurLabel.setFont(new java.awt.Font("Tahoma", 1, 10));
        idcorrecteurLabel.setText("Id Correcteur");

        idcorrecteurF.setFont(new java.awt.Font("Trebuchet MS", 1, 14));

        org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.idcorrecteur}"), idcorrecteurF, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        datechooserControle.setDateFormatString("DD MM YYYY");

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.datecorrection}"), datechooserControle, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        jCheckBox1.setBackground(new java.awt.Color(255, 255, 204));
        jCheckBox1.setFont(new java.awt.Font("Trebuchet MS", 1, 12)); // NOI18N
        jCheckBox1.setText("Valide");
        jCheckBox1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout adminpanelLayout = new javax.swing.GroupLayout(adminpanel);
        adminpanel.setLayout(adminpanelLayout);
        adminpanelLayout.setHorizontalGroup(
            adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(adminpanelLayout.createSequentialGroup()
                .addGroup(adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(adminpanelLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(datechooserControle, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)
                            .addComponent(datecorrectionLabel)
                            .addComponent(idcorrecteurF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)
                            .addComponent(idcorrecteurLabel)))
                    .addGroup(adminpanelLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jCheckBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        adminpanelLayout.setVerticalGroup(
            adminpanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(adminpanelLayout.createSequentialGroup()
                .addComponent(datecorrectionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(3, 3, 3)
                .addComponent(datechooserControle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(idcorrecteurLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(idcorrecteurF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(jCheckBox1)
                .addContainerGap())
        );

        saveButton.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 0, 0), 5, true), "Sauvegarder", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Trebuchet MS", 1, 14), new java.awt.Color(204, 0, 0))); // NOI18N
        saveButton.setContentAreaFilled(false);
        saveButton.setRequestFocusEnabled(false);
        saveButton.setRolloverEnabled(false);
        saveButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                saveButtonPressed(evt);
            }
        });

        refreshButton.setBackground(new java.awt.Color(255, 255, 255));
        refreshButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/refresh.jpg"))); // NOI18N
        refreshButton.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true), "Rafraichir", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Arial", 1, 14), new java.awt.Color(0, 0, 0))); // NOI18N
        refreshButton.setContentAreaFilled(false);
        refreshButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                refreshA(evt);
            }
        });

        javax.swing.GroupLayout CommandesLayout = new javax.swing.GroupLayout(Commandes);
        Commandes.setLayout(CommandesLayout);
        CommandesLayout.setHorizontalGroup(
            CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CommandesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(saveButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)
                    .addComponent(nouvelFicheB, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)
                    .addComponent(refreshButton, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)
                    .addComponent(adminpanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(effacerButton, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE))
                .addContainerGap())
        );
        CommandesLayout.setVerticalGroup(
            CommandesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CommandesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(nouvelFicheB, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(saveButton, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29)
                .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(effacerButton, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
                .addComponent(adminpanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        tablePanel.setBackground(new java.awt.Color(51, 51, 51));

        masterTable.setGridColor(new java.awt.Color(0, 0, 0));

        org.jdesktop.swingbinding.JTableBinding jTableBinding = org.jdesktop.swingbinding.SwingBindings.createJTableBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, list, masterTable);
        org.jdesktop.swingbinding.JTableBinding.ColumnBinding columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${id}"));
        columnBinding.setColumnName("Id");
        columnBinding.setColumnClass(Integer.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${imagefilename}"));
        columnBinding.setColumnName("Imagefilename");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${auteur}"));
        columnBinding.setColumnName("Auteur");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${date}"));
        columnBinding.setColumnName("Date");
        columnBinding.setColumnClass(java.util.Date.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${datecorrection}"));
        columnBinding.setColumnName("Datecorrection");
        columnBinding.setColumnClass(java.util.Date.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${datedonation}"));
        columnBinding.setColumnName("Datedonation");
        columnBinding.setColumnClass(java.util.Date.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${datetexte}"));
        columnBinding.setColumnName("Datetexte");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${dimension}"));
        columnBinding.setColumnName("Dimension");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${droitsrepro}"));
        columnBinding.setColumnName("Droitsrepro");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${fond}"));
        columnBinding.setColumnName("Fond");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${idcorrecteur}"));
        columnBinding.setColumnName("Idcorrecteur");
        columnBinding.setColumnClass(Integer.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${lienfichier}"));
        columnBinding.setColumnName("Lienfichier");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${lienimage}"));
        columnBinding.setColumnName("Lienimage");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${localisation}"));
        columnBinding.setColumnName("Localisation");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${resume}"));
        columnBinding.setColumnName("Resume");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${source}"));
        columnBinding.setColumnName("Source");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${titre}"));
        columnBinding.setColumnName("Titre");
        columnBinding.setColumnClass(String.class);
        columnBinding = jTableBinding.addColumnBinding(org.jdesktop.beansbinding.ELProperty.create("${typedocument}"));
        columnBinding.setColumnName("Typedocument");
        columnBinding.setColumnClass(String.class);
        bindingGroup.addBinding(jTableBinding);
        jTableBinding.bind();
        masterTable.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                masterTableMouseClicked(evt);
            }
        });
        masterscrollpane.setViewportView(masterTable);

        panelN.setBackground(new java.awt.Color(255, 255, 255));

        filtrerB.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        filtrerB.setText("Filtrer");

        fermer.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        fermer.setText("Fermer");
        fermer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fermerActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelNLayout = new javax.swing.GroupLayout(panelN);
        panelN.setLayout(panelNLayout);
        panelNLayout.setHorizontalGroup(
            panelNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelNLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(filtrerB, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(filtrerF, javax.swing.GroupLayout.PREFERRED_SIZE, 370, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 358, Short.MAX_VALUE)
                .addComponent(fermer, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26))
        );
        panelNLayout.setVerticalGroup(
            panelNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelNLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(filtrerB)
                .addComponent(filtrerF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(fermer))
        );

        javax.swing.GroupLayout tablePanelLayout = new javax.swing.GroupLayout(tablePanel);
        tablePanel.setLayout(tablePanelLayout);
        tablePanelLayout.setHorizontalGroup(
            tablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, tablePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(tablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(masterscrollpane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 957, Short.MAX_VALUE)
                    .addComponent(panelN, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        tablePanelLayout.setVerticalGroup(
            tablePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tablePanelLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(panelN, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(masterscrollpane, javax.swing.GroupLayout.PREFERRED_SIZE, 237, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("CEHA - CREATION DE FICHES");
        setResizable(false);

        Formulaire.setBackground(new java.awt.Color(51, 51, 51));

        CadreVignette1.setBackground(new java.awt.Color(204, 204, 204));
        CadreVignette1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 1, true));

        vignette1.setBackground(new java.awt.Color(255, 255, 255));
        vignette1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        vignette1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/fondlogoCEHA.jpg"))); // NOI18N
        vignette1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.BELOW_TOP, new java.awt.Font("Verdana", 3, 12), new java.awt.Color(0, 0, 0))); // NOI18N

        javax.swing.GroupLayout CadreVignette1Layout = new javax.swing.GroupLayout(CadreVignette1);
        CadreVignette1.setLayout(CadreVignette1Layout);
        CadreVignette1Layout.setHorizontalGroup(
            CadreVignette1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CadreVignette1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(vignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40))
        );
        CadreVignette1Layout.setVerticalGroup(
            CadreVignette1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CadreVignette1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(vignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 237, Short.MAX_VALUE)
                .addContainerGap())
        );

        historicpanel1.setBackground(new java.awt.Color(204, 204, 204));
        historicpanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 0), 3, true), "historique du document", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Trebuchet MS", 3, 14), new java.awt.Color(102, 102, 102))); // NOI18N

        dimensionLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        dimensionLabel1.setText("Dimensions");

        localisationLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        localisationLabel1.setText("Localisation");

        droitsreproLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        droitsreproLabel1.setText("Droits de reproduction");

        datedonationLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        datedonationLabel1.setText("Date de donation");

        fondLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 12));
        fondLabel1.setText("Fonds/provenance");

        fondField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.fond}"), fondField1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        localisationField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.localisation}"), localisationField1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        dimensionField1.setFont(new java.awt.Font("Tahoma", 0, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.dimension}"), dimensionField1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jDateChooser4.setDateFormatString("DD MM YYYY");

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.datedonation}"), jDateChooser4, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        droitsreproCombo1.setFont(new java.awt.Font("Verdana", 1, 12));
        droitsreproCombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Fonds propres CEHA (droits réservés)", "Dépôt (avec droits accordés au CEHA)", "Fonds extérieurs (demander autorisation)", "Inconnu (ne pas publier)" }));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.droitsrepro}"), droitsreproCombo1, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        javax.swing.GroupLayout historicpanel1Layout = new javax.swing.GroupLayout(historicpanel1);
        historicpanel1.setLayout(historicpanel1Layout);
        historicpanel1Layout.setHorizontalGroup(
            historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(historicpanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(historicpanel1Layout.createSequentialGroup()
                        .addComponent(droitsreproLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(droitsreproCombo1, 0, 265, Short.MAX_VALUE))
                    .addGroup(historicpanel1Layout.createSequentialGroup()
                        .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(localisationLabel1)
                            .addComponent(dimensionLabel1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(dimensionField1)
                            .addComponent(localisationField1, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)))
                    .addGroup(historicpanel1Layout.createSequentialGroup()
                        .addComponent(datedonationLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jDateChooser4, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(historicpanel1Layout.createSequentialGroup()
                        .addComponent(fondLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(fondField1, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        historicpanel1Layout.setVerticalGroup(
            historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(historicpanel1Layout.createSequentialGroup()
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(fondLabel1)
                    .addComponent(fondField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(datedonationLabel1)
                    .addComponent(jDateChooser4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(droitsreproLabel1)
                    .addComponent(droitsreproCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(localisationLabel1)
                    .addComponent(localisationField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(historicpanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dimensionLabel1)
                    .addComponent(dimensionField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        modifierButt.setFont(new java.awt.Font("Trebuchet MS", 3, 14));
        modifierButt.setText("Modifier une fiche");
        modifierButt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modifierButtActionPerformed(evt);
            }
        });

        fermerEtsortirB.setFont(new java.awt.Font("Trebuchet MS", 3, 14));
        fermerEtsortirB.setForeground(new java.awt.Color(153, 0, 0));
        fermerEtsortirB.setText("FERMER  et  SORTIR");
        fermerEtsortirB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fermerEtsortirBActionPerformed(evt);
            }
        });

        jPanel1.setBackground(new java.awt.Color(102, 102, 102));

        imagefilenameLabel1.setBackground(new java.awt.Color(153, 153, 153));
        imagefilenameLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        imagefilenameLabel1.setForeground(new java.awt.Color(255, 255, 255));
        imagefilenameLabel1.setText("Vignette");

        lienvignette1.setFont(new java.awt.Font("Times New Roman", 1, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.imagefilename}"), lienvignette1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        parcourirvignette.setFont(new java.awt.Font("Times New Roman", 3, 14));
        parcourirvignette.setText("parcourir");
        parcourirvignette.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                parcourirVignetteA(evt);
            }
        });

        editevignetteB.setFont(new java.awt.Font("Times New Roman", 3, 14));
        editevignetteB.setText("Editer");
        editevignetteB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                editeVignetteA(evt);
            }
        });

        sourcecombo1.setFont(new java.awt.Font("Times New Roman", 1, 12));
        sourcecombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Original", "Copie" }));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.source}"), sourcecombo1, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        sourceLabel1.setBackground(new java.awt.Color(153, 153, 153));
        sourceLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        sourceLabel1.setForeground(new java.awt.Color(255, 255, 255));
        sourceLabel1.setText("Source");

        typedocumentLabel2.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        typedocumentLabel2.setForeground(new java.awt.Color(255, 255, 255));
        typedocumentLabel2.setText("Type de document");

        typedocCombo1.setFont(new java.awt.Font("Times New Roman", 1, 12));
        typedocCombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Affiche", "Album thématique", "Carte postale", "Imprimé", "Journal", "Livre", "Magazine / Revue", "Manuscrit papier", "Manuscrit Vélin", "Matériel archéologique", "Numismatique", "Objet", "Photographie", "Plan", "Tableau / Gravure", "Tapuscrit", "Témoignage audio", "Témoignage vidéo", "Autres" }));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.typedocument}"), typedocCombo1, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        titreLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        titreLabel1.setForeground(new java.awt.Color(255, 255, 255));
        titreLabel1.setText("Titre*");

        titreField1.setBackground(new java.awt.Color(255, 255, 204));
        titreField1.setColumns(20);
        titreField1.setFont(new java.awt.Font("Times New Roman", 1, 18));
        titreField1.setLineWrap(true);
        titreField1.setRows(5);

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.titre}"), titreField1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jScrollPane4.setViewportView(titreField1);

        auteurField1.setBackground(new java.awt.Color(255, 255, 204));
        auteurField1.setFont(new java.awt.Font("Times New Roman", 1, 18));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.auteur}"), auteurField1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        auteurLabel1.setBackground(new java.awt.Color(153, 153, 153));
        auteurLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        auteurLabel1.setForeground(new java.awt.Color(255, 255, 255));
        auteurLabel1.setText("Auteur");

        dateLabel1.setBackground(new java.awt.Color(153, 153, 153));
        dateLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        dateLabel1.setForeground(new java.awt.Color(255, 255, 255));
        dateLabel1.setText("Date ");

        jDateChooser3.setDateFormatString("DD MM YYYY");
        jDateChooser3.setFont(new java.awt.Font("Times New Roman", 1, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.date}"), jDateChooser3, org.jdesktop.beansbinding.BeanProperty.create("date"));
        bindingGroup.addBinding(binding);

        siecleCombo1.setFont(new java.awt.Font("Times New Roman", 1, 12));
        siecleCombo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "XXème", "XIXème", "XVIIIème", "XVIIème" }));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.datetexte}"), siecleCombo1, org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
        bindingGroup.addBinding(binding);

        datetexteLabel2.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        datetexteLabel2.setForeground(new java.awt.Color(255, 255, 255));
        datetexteLabel2.setText("Date (autres formats)");

        resumeLabel1.setBackground(new java.awt.Color(153, 153, 153));
        resumeLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 14));
        resumeLabel1.setForeground(new java.awt.Color(255, 255, 255));
        resumeLabel1.setText("Résumé");

        resumeArea1.setBackground(new java.awt.Color(255, 255, 204));
        resumeArea1.setColumns(20);
        resumeArea1.setFont(new java.awt.Font("Times New Roman", 1, 18));
        resumeArea1.setLineWrap(true);
        resumeArea1.setRows(5);
        resumeArea1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
        resumeArea1.setDragEnabled(true);

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.resume}"), resumeArea1, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        jScrollPane3.setViewportView(resumeArea1);

        lienfichierLabel1.setBackground(new java.awt.Color(153, 153, 153));
        lienfichierLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 12));
        lienfichierLabel1.setForeground(new java.awt.Color(255, 255, 255));
        lienfichierLabel1.setText("Lien vers un fichier (PDF)");

        lienFichierField.setFont(new java.awt.Font("Times New Roman", 1, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.lienfichier}"), lienFichierField, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        fichierButton.setFont(new java.awt.Font("Times New Roman", 3, 14));
        fichierButton.setText("parcourir");
        fichierButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                parcourirFichierA(evt);
            }
        });

        imageButton.setFont(new java.awt.Font("Times New Roman", 3, 14));
        imageButton.setText("parcourir");
        imageButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                parcourirLienImageA(evt);
            }
        });

        lienimageField.setFont(new java.awt.Font("Times New Roman", 1, 12));

        binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, masterTable, org.jdesktop.beansbinding.ELProperty.create("${selectedElement.lienimage}"), lienimageField, org.jdesktop.beansbinding.BeanProperty.create("text"));
        bindingGroup.addBinding(binding);

        lienimageLabel1.setBackground(new java.awt.Color(153, 153, 153));
        lienimageLabel1.setFont(new java.awt.Font("Lucida Sans Typewriter", 1, 12));
        lienimageLabel1.setForeground(new java.awt.Color(255, 255, 255));
        lienimageLabel1.setText("Lien vers une image");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lienFichierField, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE)
                                    .addComponent(lienimageField, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(imageButton)
                                    .addComponent(fichierButton)))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(dateLabel1)
                                    .addComponent(jDateChooser3, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(datetexteLabel2)
                                    .addComponent(siecleCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(resumeLabel1)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                        .addComponent(typedocumentLabel2)
                                        .addGap(18, 18, 18)
                                        .addComponent(typedocCombo1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(sourceLabel1)
                                            .addComponent(imagefilenameLabel1))
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(sourcecombo1, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lienvignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(parcourirvignette, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(editevignetteB, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                    .addComponent(auteurLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(auteurField1))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                    .addComponent(titreLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 343, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(lienfichierLabel1))
                        .addGap(10, 10, 10))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(lienimageLabel1)
                        .addContainerGap(296, Short.MAX_VALUE))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(imagefilenameLabel1)
                    .addComponent(lienvignette1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(parcourirvignette, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(sourceLabel1)
                    .addComponent(sourcecombo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(editevignetteB, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(typedocumentLabel2)
                    .addComponent(typedocCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(titreLabel1)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(auteurLabel1)
                    .addComponent(auteurField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(dateLabel1)
                    .addComponent(datetexteLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jDateChooser3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(resumeLabel1))
                    .addComponent(siecleCombo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                .addComponent(lienfichierLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(fichierButton, 0, 0, Short.MAX_VALUE)
                    .addComponent(lienFichierField))
                .addGap(2, 2, 2)
                .addComponent(lienimageLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(imageButton, 0, 0, Short.MAX_VALUE)
                    .addComponent(lienimageField))
                .addContainerGap())
        );

        javax.swing.GroupLayout FormulaireLayout = new javax.swing.GroupLayout(Formulaire);
        Formulaire.setLayout(FormulaireLayout);
        FormulaireLayout.setHorizontalGroup(
            FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FormulaireLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(historicpanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(FormulaireLayout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addComponent(CadreVignette1, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(FormulaireLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(modifierButt, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(fermerEtsortirB, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addGap(21, 21, 21))
        );
        FormulaireLayout.setVerticalGroup(
            FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(FormulaireLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(FormulaireLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(FormulaireLayout.createSequentialGroup()
                        .addComponent(CadreVignette1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(modifierButt)
                        .addGap(18, 18, 18)
                        .addComponent(fermerEtsortirB, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(historicpanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(9, 9, 9))
        );

        getContentPane().add(Formulaire, java.awt.BorderLayout.CENTER);

        bindingGroup.bind();

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-683)/2, (screenSize.height-657)/2, 683, 657);
    }// </editor-fold>//GEN-END:initComponents

    private void parcourirVignetteA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_parcourirVignetteA

        String ressourceStrRef = ceha.getRepVignette();
        JFileChooser chooser = new JFileChooser();
        chooser.setCurrentDirectory(new File(ressourceStrRef));
        chooser.changeToParentDirectory();
        int returnVal = chooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            lienvignette1.setText(chooser.getSelectedFile().getAbsolutePath());
            vignette1.setIcon(new javax.swing.ImageIcon(chooser.getSelectedFile().getAbsolutePath()));
        }
}//GEN-LAST:event_parcourirVignetteA

    private void parcourirFichierA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_parcourirFichierA

        JFileChooser chooser = new JFileChooser();
        int returnVal = chooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            lienFichierField.setText(chooser.getSelectedFile().getAbsolutePath());
        }
}//GEN-LAST:event_parcourirFichierA

    private void parcourirLienImageA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_parcourirLienImageA
        JFileChooser chooser = new JFileChooser();
        int returnVal = chooser.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            lienimageField.setText(chooser.getSelectedFile().getAbsolutePath());
        }
}//GEN-LAST:event_parcourirLienImageA

    private void nouvelFicheA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nouvelFicheA

        ficheEnable(true);
        ceha.Fiche f = new ceha.Fiche();
        entityManager.persist(f);
        list.add(f);
        int row = list.size() - 1;
        masterTable.setRowSelectionInterval(row, row);
        masterTable.scrollRectToVisible(masterTable.getCellRect(row, 0, true));
        nouvelFicheB.setIcon(new ImageIcon(getClass().getResource("/ceha/ressource/travail.gif")));
        saveButton.setIcon(new ImageIcon(getClass().getResource("/ceha/ressource/rouge_10.jpg")));
}//GEN-LAST:event_nouvelFicheA

    private void deleteFicheA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteFicheA
        new OkCancelDialog("Effacer ?", this, true).setVisible(true);
        if (OkCancelDialog.RET_OK == 1) {
            ficheEnable(false);
            int[] selected = masterTable.getSelectedRows();
            List<ceha.Fiche> toRemove = new ArrayList<ceha.Fiche>(selected.length);
            for (int idx = 0; idx
                    < selected.length; idx++) {
                ceha.Fiche f = list.get(masterTable.convertRowIndexToModel(selected[idx]));
                toRemove.add(f);
                entityManager.remove(f);
            }
            list.removeAll(toRemove);
        }
}//GEN-LAST:event_deleteFicheA
//    private void saveFicheA(java.awt.event.ActionEvent evt) {
//        if (titreField1.getText().equals("")) {
//            new OkDialog("Titre obligatoire !", false).setVisible(true);
//        } else {
//            try {
//                entityManager.getTransaction().commit();
//                entityManager.getTransaction().begin();
//            } catch (RollbackException rex) {
//                rex.printStackTrace();
//                entityManager.getTransaction().begin();
//                List<ceha.Fiche> merged = new ArrayList<ceha.Fiche>(list.size());
//                for (ceha.Fiche f : list) {
//                    merged.add(entityManager.merge(f));
//                }
//                list.clear();
//                list.addAll(merged);
//            }
//
//            saveButton.setText("SAUVEGARDE");
//
////            saveButton.setIcon(new ImageIcon(getClass().getResource("/ceha/ressource/red_check.png")));
////            nouvelFicheB.setIcon(new ImageIcon(getClass().getResource("/ceha/ressource/10.gif")));
//        }
//}
    private void refreshA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_refreshA
        entityManager.getTransaction().rollback();
        entityManager.getTransaction().begin();
        java.util.Collection data = query.getResultList();
        for (Object entity : data) {
            entityManager.refresh(entity);
        }
        list.clear();
        list.addAll(data);
    }//GEN-LAST:event_refreshA

    private void masterTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_masterTableMouseClicked
        int id = masterTable.getSelectedRow();
        String filename = (String) masterTable.getValueAt(id, 1);
        System.out.println(id);
        //        fiche.getVignette1().setIcon(new javax.swing.ImageIcon(filename));
        //        System.out.println(id);
        //        String lienfichier = (String) masterTable.getValueAt(id, 8);
        //        lienFichierButton.setText(lienfichier);
        if (filename == null) {
            vignette1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ceha/ressource/fondlogoCEHA.jpg")));
        } else {
            vignette1.setIcon(new javax.swing.ImageIcon(filename));
        }
        ficheEnable(true);
    }//GEN-LAST:event_masterTableMouseClicked

    private void editeVignetteA(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editeVignetteA
        if (lienvignette1.getText() != null) {
            String readerimage = ceha.getAdminparam().getImagereaderF();
            Runtime runtime = Runtime.getRuntime();
            try {
                runtime.exec(new String[]{readerimage, lienvignette1.getText()});
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        }
    }//GEN-LAST:event_editeVignetteA

    private void modifierButtActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modifierButtActionPerformed

        nouvelFicheB.setEnabled(false);
        frameRecherche = new JFrame("Recherches");
        frameRecherche.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
        frameRecherche.getContentPane().add(tablePanel, BorderLayout.CENTER);
        final TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(masterTable.getModel());
        masterTable.setRowSorter(sorter);
        filtrerB.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                String text = filtrerF.getText();
                if (text.length() == 0) {
                    sorter.setRowFilter(null);
                } else {
                    sorter.setRowFilter(RowFilter.regexFilter(text));
                }
            }
        });
        frameRecherche.setLocation(700, 180);
        frameRecherche.setVisible(true);
        frameRecherche.pack();
    }//GEN-LAST:event_modifierButtActionPerformed

    private void fermerEtsortirBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fermerEtsortirBActionPerformed


        ceha.getCommandescreateJFrame().dispose();
        if (frameRecherche != null) {
            frameRecherche.dispose();
        }
        dispose();
        ceha.logout();

    }//GEN-LAST:event_fermerEtsortirBActionPerformed

    private void saveButtonPressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saveButtonPressed
        if (titreField1.getText().equals("")) {
            new OkDialog("Titre obligatoire !", false).setVisible(true);
        } else {
            try {
                entityManager.getTransaction().commit();
                entityManager.getTransaction().begin();
            } catch (RollbackException rex) {
                rex.printStackTrace();
                entityManager.getTransaction().begin();
                List<ceha.Fiche> merged = new ArrayList<ceha.Fiche>(list.size());
                for (ceha.Fiche f : list) {
                    merged.add(entityManager.merge(f));
                }
                list.clear();
                list.addAll(merged);
            }

            saveButton.setText("SAUVEGARDE");

//            saveButton.setIcon(new ImageIcon(getClass().getResource("/ceha/ressource/red_check.png")));
//            nouvelFicheB.setIcon(new ImageIcon(getClass().getResource("/ceha/ressource/10.gif")));
        }
    }//GEN-LAST:event_saveButtonPressed

    private void fermerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fermerActionPerformed
        frameRecherche.dispose();
    }//GEN-LAST:event_fermerActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel CadreVignette1;
    private javax.swing.JPanel Commandes;
    private javax.swing.JPanel Formulaire;
    private javax.swing.JPanel adminpanel;
    private javax.swing.JTextField auteurField1;
    private javax.swing.JLabel auteurLabel1;
    private javax.swing.JLabel dateLabel1;
    private com.toedter.calendar.JDateChooser datechooserControle;
    private javax.swing.JLabel datecorrectionLabel;
    private javax.swing.JLabel datedonationLabel1;
    private javax.swing.JLabel datetexteLabel2;
    private javax.swing.JTextField dimensionField1;
    private javax.swing.JLabel dimensionLabel1;
    private javax.swing.JComboBox droitsreproCombo1;
    private javax.swing.JLabel droitsreproLabel1;
    private javax.swing.JButton editevignetteB;
    private javax.swing.JButton effacerButton;
    private javax.persistence.EntityManager entityManager;
    private javax.swing.JButton fermer;
    private javax.swing.JButton fermerEtsortirB;
    private javax.swing.JButton fichierButton;
    private javax.swing.JButton filtrerB;
    private javax.swing.JTextField filtrerF;
    private javax.swing.JTextField fondField1;
    private javax.swing.JLabel fondLabel1;
    private javax.swing.JPanel historicpanel1;
    private javax.swing.JTextField idcorrecteurF;
    private javax.swing.JLabel idcorrecteurLabel;
    private javax.swing.JButton imageButton;
    private javax.swing.JLabel imagefilenameLabel1;
    private javax.swing.JCheckBox jCheckBox1;
    private com.toedter.calendar.JDateChooser jDateChooser3;
    private com.toedter.calendar.JDateChooser jDateChooser4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTextField lienFichierField;
    private javax.swing.JLabel lienfichierLabel1;
    private javax.swing.JTextField lienimageField;
    private javax.swing.JLabel lienimageLabel1;
    private javax.swing.JTextField lienvignette1;
    private java.util.List<ceha.Fiche> list;
    private javax.swing.JTextField localisationField1;
    private javax.swing.JLabel localisationLabel1;
    private javax.swing.JTable masterTable;
    private javax.swing.JScrollPane masterscrollpane;
    private javax.swing.JButton modifierButt;
    private javax.swing.JButton nouvelFicheB;
    private javax.swing.JPanel panelN;
    private javax.swing.JButton parcourirvignette;
    private javax.persistence.Query query;
    private javax.swing.JButton refreshButton;
    private javax.swing.JTextArea resumeArea1;
    private javax.swing.JLabel resumeLabel1;
    private javax.swing.JButton saveButton;
    private javax.swing.JComboBox siecleCombo1;
    private javax.swing.JLabel sourceLabel1;
    private javax.swing.JComboBox sourcecombo1;
    private javax.swing.JPanel tablePanel;
    private javax.swing.JTextArea titreField1;
    private javax.swing.JLabel titreLabel1;
    private javax.swing.JComboBox typedocCombo1;
    private javax.swing.JLabel typedocumentLabel2;
    private javax.swing.JLabel vignette1;
    private org.jdesktop.beansbinding.BindingGroup bindingGroup;
    // End of variables declaration//GEN-END:variables
}
